DevJourney

Python/RegEx/String's Last Word/split().py

s = str(input("Enter a string: "))
t = s.split()
print(t[-1])
View on GitHub